﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using DAL;
using System.Data;
namespace BLL
{
    public class BENHNHANBUS
    {
        public static List<BENHNHAN> GetListname(BENHNHAN bn)
        {
            BENHNHANDAO dao = new BENHNHANDAO();
            return dao.GetListBN(bn);
        }
		public static DataTable GETALL()
		{
			BENHNHANDAO dao = new BENHNHANDAO();
			return dao.GETALL();
		}
		public static DataTable GETALLSMS()
		{
			BENHNHANDAO dao = new BENHNHANDAO();
			return dao.GETALLSMS();
		}
		public static List<BENHNHAN> GETLISTBNDIEUTRI()
		{
			BENHNHANDAO dao = new BENHNHANDAO();
			return dao.GetListBNDIEUTRI();
		}
		public static List<BENHNHAN> GETLISTBNTHANHTOAN()
		{
			BENHNHANDAO dao = new BENHNHANDAO();
			return dao.GetListTHANHTOAN();
		}
public static List<CT_TOATHUOCBN> GetCTTTbyIDBN(BENHNHAN bn)
		{
			BENHNHANDAO dao = new BENHNHANDAO();
			return dao.GetCTTTbyIDBN(bn);
		}
		public static List<BENHNHAN> Find(BENHNHAN bn)
		{
			BENHNHANDAO dao = new BENHNHANDAO();
			return dao.Find(bn);
		}
		public static List<BENHNHAN> FindBNTHANHTOAN(BENHNHAN bn)
		{
			BENHNHANDAO dao = new BENHNHANDAO();
			return dao.Findthanhtoan(bn);
		}
		public static DataTable Finds(BENHNHAN bn)
		{
			BENHNHANDAO dao = new BENHNHANDAO();
			return dao.Finds(bn);
		}
		public static BENHNHAN GetABN(BENHNHAN bn)
		{
			BENHNHANDAO dao = new BENHNHANDAO();
			return dao.GetABenhNhan(bn);
		}
		public static String CreateNewID()
		{
			BENHNHANDAO dao = new BENHNHANDAO();
			return dao.CreatenewId();
		}
		public static bool INSERT(BENHNHAN bn, List<TIENSUBENHNHAN> tiensu, LYDOBIETNHAKHOA lydo)
		{
			BENHNHANDAO dao = new BENHNHANDAO();
			return dao.INSERT(bn,tiensu,lydo);
		}
		public static bool UPDATE(BENHNHAN bn, List<TIENSUBENHNHAN> tiensu, LYDOBIETNHAKHOA lydo)
		{
			BENHNHANDAO dao = new BENHNHANDAO();
			return dao.UPDATE(bn, tiensu, lydo);
		}
		public static bool DELETE(BENHNHAN bn)
		{
			BENHNHANDAO dao = new BENHNHANDAO();
			return dao.DELETE(bn);
		}
		public static DataTable GETLISTBIRTHDAY()
		{
			BENHNHANDAO dao = new BENHNHANDAO();
			return dao.GETLISTBIRTHDAY();
		}
    }
}
